package cc.rboot.tracking.domain;

import cc.rboot.token.core.IToken;

import java.time.LocalDateTime;

public class TrackingRecord {

    private String name;
    private Long duration; // 执行时长，单位ms
    private Boolean success; // 是否执行成功
    private String version;
    private String productVersion;
    private String os;

    private LocalDateTime time;

    private IToken token;

    public IToken getToken() {
        return token;
    }

    public void setToken(IToken token) {
        this.token = token;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public Long getDuration() {
        return duration;
    }

    public void setDuration(Long duration) {
        this.duration = duration;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getProductVersion() {
        return productVersion;
    }

    public void setProductVersion(String productVersion) {
        this.productVersion = productVersion;
    }

    public String getOs() {
        return os;
    }

    public void setOs(String os) {
        this.os = os;
    }

    @Override
    public String toString() {
        return "TrackingRecord{" +
                "name='" + name + '\'' +
                ", duration=" + duration +
                ", success=" + success +
                ", version='" + version + '\'' +
                ", productVersion='" + productVersion + '\'' +
                ", os='" + os + '\'' +
                ", time=" + time +
                ", token=" + token +
                '}';
    }
}
